package plus.easydo.xxl.job.model;

import cn.hutool.http.HttpStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yuzhanfeng
 * @Date 2023/2/17 14:58
 * @Description xxljob请求响应对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class XxlJobResult {

    private Integer code;

    private String msg;

    private String content;

    public boolean isSuccess(){
        return code == HttpStatus.HTTP_OK;
    }

}
